<?php
declare(strict_types=1);

namespace ImiApp\ApiServer\Backend\Validate;

use Phpben\Imi\Validate\Validate;

class NoticeValidate extends Validate
{
    protected $rule = [
		'id' => 'require|integer',
    ];

    // protected $message = [
    // ];


    protected $scene = [
      'create' => [ 'name', 'notice_status', 'image', 'content', 'status', 'views', 'ps' ],
      'update' => ['id', 'name', 'notice_status', 'image', 'content', 'status', 'views', 'ps'  ],
      'sort' => ['ids','pid','changeid','changepid']        
  ];
}
